package com.example.bank.web;

import com.example.bank.application.TransferService;
import com.example.bank.exception.DailyLimitExceededException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
public class TransferController {

    @Autowired
    private TransferService transferService;
    public void test() throws Exception, DailyLimitExceededException {
        //转账操作
        transferService.transfer(123L,"124",new BigDecimal(100),"RMB");
    }

}
